/**   
 * @Title: FootballGGTypeTransfer.java 
 * @Package: com.esun.util 
 * @Description: TODO(竞彩足球过关方式转换) 
 * @Author: Billy qigs@500wan.com   
 * @Date: 2011-8-18 下午02:06:50  
 * Copyright (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.util;

import com.esun.util.log.EDebug;

/**
 * @ClassName: FootballGGTypeTransfer
 * @Description: TODO(竞彩足球过关方式转换)
 * @Author: Billy qigs@500wan.com
 * @Date: 2011-8-18 下午02:06:50
 */
public class FootballGGTypeTransfer {

	public String footballGGTypeTransfer(String typeCode) {

		String str = typeCode;
		switch (Integer.valueOf(str)) {
		case 1:
			str = str.replace("1", "2串1");
			break;
		case 2:
			str = str.replace("2", "2串3");
			break;
		case 3:
			str = str.replace("3", "3串1");
			break;
		case 4:
			str = str.replace("4", "3串4");
			break;
		case 5:
			str = str.replace("5", "3串6");
			break;
		case 6:
			str = str.replace("6", "3串7");
			break;
		case 7:
			str = str.replace("7", "4串1");
			break;
		case 8:
			str = str.replace("8", "4串4");
			break;
		case 9:
			str = str.replace("9", "4串5");
			break;
		case 10:
			str = str.replace("10", "4串6");
			break;
		case 11:
			str = str.replace("11", "4串10");
			break;
		case 12:
			str = str.replace("12", "4串11");
			break;
		case 13:
			str = str.replace("13", "4串14");
			break;
		case 14:
			str = str.replace("14", "4串15");
			break;
		case 15:
			str = str.replace("15", "5串1");
			break;
		case 16:
			str = str.replace("16", "5串5");
			break;
		case 17:
			str = str.replace("17", "5串6");
			break;
		case 18:
			str = str.replace("18", "5串10");
			break;
		case 19:
			str = str.replace("19", "5串15");
			break;
		case 20:
			str = str.replace("20", "5串16");
			break;
		case 21:
			str = str.replace("21", "5串20");
			break;
		case 22:
			str = str.replace("22", "5串25");
			break;
		case 23:
			str = str.replace("23", "5串26");
			break;
		case 24:
			str = str.replace("24", "5串30");
			break;
		case 25:
			str = str.replace("25", "5串31");
			break;
		case 26:
			str = str.replace("26", "6串1");
			break;
		case 27:
			str = str.replace("27", "6串6");
			break;
		case 28:
			str = str.replace("28", "6串7");
			break;
		case 29:
			str = str.replace("29", "6串15");
			break;
		case 30:
			str = str.replace("30", "6串20");
			break;
		case 31:
			str = str.replace("31", "6串21");
			break;
		case 32:
			str = str.replace("32", "6串35");
			break;
		case 33:
			str = str.replace("33", "6串41");
			break;
		case 34:
			str = str.replace("34", "6串42");
			break;
		case 35:
			str = str.replace("35", "6串50");
			break;
		case 36:
			str = str.replace("36", "6串56");
			break;
		case 37:
			str = str.replace("37", "6串57");
			break;
		case 38:
			str = str.replace("38", "6串62");
			break;
		case 39:
			str = str.replace("39", "6串63");
			break;
		case 40:
			str = str.replace("40", "单关");
			break;
		case 41:
			str = str.replace("41", "7串1");
			break;
		case 42:
			str = str.replace("42", "7串7");
			break;
		case 43:
			str = str.replace("43", "7串8");
			break;
		case 44:
			str = str.replace("44", "7串21");
			break;
		case 45:
			str = str.replace("45", "7串35");
			break;
		case 46:
			str = str.replace("46", "7串120");
			break;
		case 47:
			str = str.replace("47", "7串127");
			break;
		case 48:
			str = str.replace("48", "8串1");
			break;
		case 49:
			str = str.replace("49", "8串8");
			break;
		case 50:
			str = str.replace("50", "8串9");
			break;
		case 51:
			str = str.replace("51", "8串28");
			break;
		case 52:
			str = str.replace("52", "8串56");
			break;
		case 53:
			str = str.replace("53", "8串70");
			break;
		case 54:
			str = str.replace("54", "8串247");
			break;
		case 55:
			str = str.replace("55", "8串255");
			break;
		case 56:
			str = str.replace("56", "3串3");
			break;
		case 57:
			str = str.replace("57", "6串22");
			break;
		}

		return str;
	}

	public void test() {
		for (int i = 1; i < 58; i++) {
			EDebug.o(this, footballGGTypeTransfer(String.valueOf(i)));
		}
	}
}
